import request from '@/utils/request'



export function getaskid(query) {
  return request({
    url: '/ibrain/getaskid',
    method: 'post',
    data: query
  })
}
export function getuserlist(query){
  return request({
    url: '/ibrain/getuserlist',
    method: 'post',
    data: query
  })
}

export function upload(query) {
  return request({
    url: '/ibrain/upload',
    method: 'post',
    data: query
  })
}
export function uploadcomplex(query) {
  return request({
    url: '/ibrain/upload_complex',
    method: 'post',
    data: query
  })
}

export function batchDeleteSubject(query){
  return request({
    url: '/ibrain/batchDelete',
    method: 'post',
    data: query
  })
}

export function Delete(query){
  return request({
    url: '/ibrain/delete',
    method: 'post',
    data: query
  })
}

export function runmat(query){
  return request({
    url: '/ibrain/runmat',
    method: 'post',
    data: query
  })
}

export function queueload(query){
  return request({
    url: '/ibrain/queueloader',
    method: 'post',
    data: query
  })
}
export function progressload(query){
  return request({
    url: '/ibrain/progressloader',
    method: 'post',
    data: query
  })
}
export function download(query){
  return request({
    url: '/ibrain/download',
    method: 'get',
    params: query,
    responseType: 'blob',
  })
}

export function downloadreportlist(query){
  return request({
    url: '/ibrain/downloadreportlist',
    method: 'post',
    data: query,
    responseType: 'blob',
  })
}

export function reinpu(){
  return request({
    url: '/ibrain/reinput',
    method: 'post',
  })
}

export function downloadlist(){
  return request({
    url: '/ibrain/downloadlist',
    method: 'get',
  })
}

export function downloadlistbysearch(query){
  return request({
    url: '/ibrain/downloadlistbysearch',
    method: 'post',
    data: query,
  })
}


export function getxyz(query) {
  return request({
    url: '/ibrain/getniixyz',
    method: 'get',
    params:query,
  })
}
export function getxyzlen(query){
  return request({
    url: '/ibrain/getxyzlen',
    method: 'get',
    params:query,
  })
}

export function updateAge(query){
  return request({
    url: '/ibrain/updateAge',
    method: 'post',
    data:query,
  })
}
export function updateSex(query){
  return request({
    url: '/ibrain/updateSex',
    method: 'post',
    data:query,
  })
}
